package com.boliq.lol.adapter;

import com.boliq.lol.R;
import com.boliq.lol.bean.NewsArticleBean;
import com.boliq.lol.bean.NewsMatchBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class NewsMatchAdapter extends BaseQuickAdapter<NewsMatchBean, BaseViewHolder> {

    public NewsMatchAdapter() {
        super(R.layout.item_news_match);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewsMatchBean newsMatchBean) {
        baseViewHolder.setText(R.id.tv_article_title,newsMatchBean.getTitle());
        baseViewHolder.setImageResource(R.id.img_cover,newsMatchBean.getImag());
        baseViewHolder.setText(R.id.tv_tag,newsMatchBean.getTag());
        baseViewHolder.setText(R.id.tv_article_user,newsMatchBean.getUser());
        baseViewHolder.setText(R.id.tv_view_number,newsMatchBean.getHot());
    }

}
